---
title: "Primes a batch statement with a successful response"
method: POST
path: "/prime/{clusterId}#(Batch statement)"
tags: ["prime"]
---

# Primes a batch statement with a successful response

`POST /prime/{clusterId}#(Batch statement)`

## Path parameters

- `clusterId` string, required

## Request body

- PrimeQuerySuccessBatch
  - `when` Batch, required
    - `request` string
    - `queries` Query[]
      - `query` string, required
      - `consistency_level` Consistency[]
      - `params` object — Each property is a mapping of parameter name to paramter value. The value can be of any type as simulacron will attempt to map the json value to it's native binary format"
      - `param_types` object — Each property is a mapping of parameter name to parameter type
    - `consistency_level` Consistency[]
  - `then` SuccessResultBatch, required
    - `result` string, required
    - `delay_in_ms` integer, required — Adds delay to send response back to client.
    - `ignore_on_prepare` boolean — Whether or not this result be applied to a matching prepare statement. If not specified, defaults to true (does not apply) and applies to the execution of statements tied to that prepared statement.
    - `rows` Row[], required
    - `column_types` object, required — Each property is a mapping of column name to column type

## Response `201`

PrimedQuery

- PrimeQuerySuccessBatch
  - `when` Batch, required
    - `request` string
    - `queries` Query[]
      - `query` string, required
      - `consistency_level` Consistency[]
      - `params` object — Each property is a mapping of parameter name to paramter value. The value can be of any type as simulacron will attempt to map the json value to it's native binary format"
      - `param_types` object — Each property is a mapping of parameter name to parameter type
    - `consistency_level` Consistency[]
  - `then` SuccessResultBatch, required
    - `result` string, required
    - `delay_in_ms` integer, required — Adds delay to send response back to client.
    - `ignore_on_prepare` boolean — Whether or not this result be applied to a matching prepare statement. If not specified, defaults to true (does not apply) and applies to the execution of statements tied to that prepared statement.
    - `rows` Row[], required
    - `column_types` object, required — Each property is a mapping of column name to column type

## Other responses

- `400` — Unable to parse provided query

---

[API](https://skmtc.net/datastax/apis/simulacron-rest-api.md) · [All operations](https://skmtc.net/datastax/apis/simulacron-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datastax/simulacron-rest-api/revisions/0a5cd5c466d5/schema)
